{template "header.html", "/"}

<div class="page-container">
    <div class="page-content-wrapper">
        {template "header.html"}
        <div class="page-content">
            <div class="container">
                <div class="page-content-inner">

                    <!--循环输出顶级栏目下面的子栏目及其内容，运用到了双list循环标签因此需要定义返回值return=c（都懂得）-->
                    {list action=category pid=0 return=c}
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="portlet light">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <span class="caption-subject bold uppercase"><a class="font-green" href="{dr_mobile_category_url(MOD_DIR, $c.id)}">{$c.name}</a></span>
                                    </div>
                                </div>
                                <div class="portlet-body">
                                    <div class="row">
                                        {list action=category pid=$c.id return=cc}
                                        {php $info=dr_cat_count($cc.id);}
                                        <div class="col-md-12 wbbs_list">
                                            <div class="row">
                                                <div class="col-md-10">
                                                    <h5><a href="{dr_mobile_category_url(MOD_DIR, $cc.id)}" {if $cc.color}style="color:{$cc.color}"{/if}>{$cc.name}</a> {if $info.today_subjects+$info.today_replys}<label style="color: #ff5500 !important">(今日: {$info.today_subjects+$info.today_replys}){/if}</label></h5>
                                                    <div class="wbbs_list_count">主题：{intval($info.subjects)}，帖子：{intval($info.replys)}</div>
                                                    {if $info.last_uid}
                                                    <div class="wbbs_list_info">
                                                        <a href="{dr_mobile_show_url(MOD_DIR, $info.last_id)}">{dr_strcut($info.last_title, 20)}</a>
                                                        <label>{dr_fdate($info.last_time)}</label>
                                                        <a href="{dr_space_url($info_last.uid)}" target="_blank">{$info.last_username}</a>
                                                    </div>
                                                    {/if}
                                                </div>
                                            </div>
                                        </div>
                                        {/list}

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    {/list}


                </div>
            </div>
        </div>
    </div>
</div>



{template "footer.html", "/"}